package com.five.base.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName Rest
 * @Author wuxuan
 * @Date 2019/1/13 15:11
 * @Version 1.0
 * @Description rest 工具类
 **/
@Configuration
@Component
public class Rest {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
